import {addClass} from "../../assets/js/dom";
// import {createApp} from "vue";

const setColorDirective = {
  mounted(el, binding) {
    console.log('mounted --- el', el)
    console.log('mounted --- binding', binding)
    // 注意这个className 不需要加 .
    addClass(el, 'g-color')

    // createApp()
  },
  updated(el, binding) {
    // console.log('updated --- el', el)
    // console.log('updated --- binding', binding)
    // addClass(el, '.g-color')
  }
}

export default setColorDirective
